using FlowCanvas.Nodes;

namespace Yoozoo.Gameplay.Liberty.Nodes
{
    public class CacheCityCameraPos : CallableActionNode<bool>
    {
        public override void Invoke(bool isRecover)
        {
            if (isRecover)
            {
                // 恢复相机位置
                BlueprintUtils.RecoverCacheCityCameraPos();
            }
            else
            {
                // 缓存相机位置
                BlueprintUtils.CacheCityCameraPos();
            }
        }
    }
}